Repository navigation
feat(aws): monitoring stack composite (#1139) - #1920
Merged
Merged
Conversation
…#1139) The recurring hand-rolled shape the aws-bench corpus surfaced: a dashboard, a metric per resource, and a near-identical alarm next to each one — 44 combined dashboard+alarm+metric instantiations across the corpus, nothing equivalent shipped. Fixed metric1..metric3 slots (an Alarm-array loop is the control-flow-over-resources shape EVL002/EVL003 rule out for reference composites, same reasoning as EksCluster's addon1..addon3). Verified against Floci: a CwDashboard + Alarm pair from this composite deploys via cfn-deploy to CREATE_COMPLETE, and describe-alarms round-trips every property. Two emulator gaps found along the way (CloudWatch's list/get-dashboard both UnsupportedOperation despite CFN reporting the Dashboard created; its physical id ignores the declared DashboardName) — logged in test/floci-gaps.md, entries 11-12, not filed upstream yet. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013GoZx3iYpaQxKNCNxguYvT
This was referenced Aug 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
MonitoringStack— aCwDashboardwired to up to three named metrics (metric1..metric3), with an optionalAlarmper metric — the composite gap#1139names: "Monitoring stack (dashboard + metrics + alarms) — x44 combined, nothing shipped".metrics[]array: anAlarm-array loop is the control-flow-over-resources shape EVL002/EVL003 rule out for reference composites (same reasoning asEksCluster'saddon1..addon3).DashboardBodyis one flat JSON string CloudFormation does not template) — documented in the file header as scope boundaries, same style asEksCluster's.Dashboard/Alarmcomposite existed inlexicons/aws/src/compositesbefore this change.Relates to #1139 (epic stays open — other composite gaps from the corpus are separate child issues, two more in flight from sibling PRs).
Test plan
lexicons/aws/src/composites/monitoring-stack.test.ts— 8 unit tests (dashboard-only metric, alarmed metric, three-slot mix,dimensionValueRef/GetAtt escape hatch, no-dimension metrics, alarm-action/comparison/eval-period wiring,defaultsescape hatch,expandCompositelogical names)barrel.test.ts— confirmsMonitoringStackreaches the root package exportnpx vitest run lexicons/aws— 122 files, 1596 passedchant dev check-lexicon lexicons/aws— all 23 tier-1 checks pass, including "every shipped example builds"tscbuild of the aws lexicon package — cleanMonitoringStack,cfn-deployd to a local Floci container, confirmed bothAWS::CloudWatch::DashboardandAWS::CloudWatch::AlarmreachCREATE_COMPLETE, anddescribe-alarmsround-trips every alarm property exactlytest/floci-gaps.md(entries 11-12):list-dashboards/get-dashboardareUnsupportedOperationdespite CFN reporting the dashboard created, and the dashboard's physical id ignores the declaredDashboardNameCo-Authored-By: Claude Fable 5 noreply@anthropic.com
https://claude.ai/code/session_013GoZx3iYpaQxKNCNxguYvT